﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EntGuayasSLA.BL;
using EntGuayasSLA.BL.Listas;
using EntGuayasSLA.BL.Listas.Criterias;
using Ext.Net;

namespace EGuayas.Web.Licenciamiento.admin.tabs
{
    //Constantes.LBorradorEIA
    public partial class pgBorrador : pgBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                CloseTabs(TabPanel1, 1);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }
        
        #region Documentos 
        /// <summary>
        /// Documentos correguir
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnCorreguirDocCategoriaAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
                Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
                SetCustomConfigWucLicAll(panel, SessionPage.PageLicAdm,Constantes.LBorradorEIA);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }

        }

        
        
        #endregion

        /// <summary>
        /// Inicializar constante de Borrardor
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnTareasBorradorAdded(object sender, ComponentAddedEventArgs e)
        {   
            try
            {
                Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
                SetCustomConfigWucLicAll(panel, SessionPage.PageLicAdm, Constantes.LBorradorEIA);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
          

        }
        #region Informe
        /// <summary>
        /// Informes
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnInformeCorrecionBorradorAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
                Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
                SetCustomConfigWucLicInforme(panel, SessionPage.PageLicAdm, Constantes.LBorradorEIA, Valores.Modulo_Archivo_Informes_Licenciamiento);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }

        
        #endregion
    }
}